﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Top.PointStore.Business
{
    /// <summary>
    /// 兑换规则
    /// </summary>
    public class T_ExchangeRule
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Kid { get; set; }
        /// <summary>
        /// 商品id
        /// </summary>
        public int F_ProductKid { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime F_BeginTime { get; set; }
        /// <summary>
        /// 结束结束
        /// </summary>
        public DateTime F_EndTime { get; set; }
        /// <summary>
        /// 兑换积分
        /// </summary>
        public int F_PointNum { get; set; }
        /// <summary>
        /// 规则状态:0禁用；1启用
        /// </summary>
        public int F_Disabled { get; set; }
        /// <summary>
        /// 状态：0、自动处理，1、审核处理
        /// </summary>
        public int F_Status { get; set; }
        /// <summary>
        /// 兑换类型：0、永久，1、每天
        /// </summary>
        public int F_ExchangeType { get; set; }
        /// <summary>
        /// 是否开启兑换规则：0、关闭，1、开启
        /// </summary>
        public int F_IsExchange { get; set; }
        /// <summary>
        /// 用户兑换次数
        /// </summary>
        public int F_UserExchangeNum { get; set; }
        /// <summary>
        /// 每日兑换数量
        /// </summary>
        public int F_ExchangeNum { get; set; }
        /// <summary>
        /// 每日兑换开始时间
        /// </summary>
        public string F_ExchangeBeginTime { get; set; }
        /// <summary>
        /// 每日兑换结束时间
        /// </summary>
        public string F_ExchangeEndTime { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime F_CreatedTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime F_UpdatedTime { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? F_DeletedTime { get; set; }
        /// <summary>
        /// 逻辑删除标示
        /// </summary>
        public int? F_IsDelete { get; set; }

        public List<T_RuleToCity> T_RuleToCity { get; set; }

        /// <summary>
        /// 是否参与秒杀
        /// </summary>
        public int F_IsMeskill { get; set; }
    }

    public class T_ExchangeRuleExpand : T_ExchangeRule
    {
        public string RuleToCity { get; set; }
    
    }
}
